class PaymentHistory {
    static getStatusComment(p:PaymentHistory){
        if(p.status==-1) return "未审批";
        if(p.status==0) return "未通过";
        if(p.status==1) return "同意";
    }
    /**
     * 还款记录ID
     */
    paymentHistoryId: number | null = null;

    /**
     * 案件ID
     */
    caseId: number | null = null;

    /**
     * 审核状态 -1未审批 0拒绝 1 同意
     */
    status: number | null = null;

    /**
     * 还款证明资料
     */
    paymentProve: string | null = null;
    //提交人的id
    userId: number | null = null;
    cause:string|null=null;//原因
    /**
     * 创建时间
     */
    createdTime: string | null = null;

    constructor(paymentHistoryId?: number, caseId?: number, paymentStatus?: number,
                paymentProve?: string, createdTime?: string) {
        this.paymentHistoryId = paymentHistoryId ?? null;
        this.caseId = caseId ?? null;
        this.status = paymentStatus ?? null;
        this.paymentProve = paymentProve ?? null;
        this.createdTime = createdTime ?? null;
    }
}
export default PaymentHistory;

/**
 * 还款记录
 */